<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<html>
<body>
<sec:authentication property="principal.username"/>
<sec:authorize access="hasRole('ROLE_ADMIN')">
<h2>Admin</h2>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_USER')">
<h2>User</h2>
</sec:authorize>
</body>
</html>
